package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.KeyValuePair;
import com.ysy.tz.core.engine.Modelable;
import java.util.ArrayList;
import java.util.Objects;

public class GradingRuleGroup implements Modelable, KeyValuePair {
    private String levelCode;
    private ArrayList<GradingRuleEntity> gradingRuleEntitys = new ArrayList();

    public GradingRuleGroup(String levelCode) {
        this.levelCode = levelCode;
    }

    public String getModelStringValue() {
        return this.levelCode;
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (o != null && this.getClass() == o.getClass()) {
            GradingRuleGroup that = (GradingRuleGroup)o;
            return Objects.equals(this.levelCode, that.levelCode);
        } else {
            return false;
        }
    }

    public int hashCode() {
        return Objects.hash(new Object[]{this.levelCode});
    }

    public String getKeyPair() {
        return this.levelCode;
    }

    public String getValuePair() {
        return this.levelCode;
    }

    public String getLevelCode() {
        return this.levelCode;
    }

    public ArrayList<GradingRuleEntity> getGradingRuleEntitys() {
        return this.gradingRuleEntitys;
    }

    public void setLevelCode(String levelCode) {
        this.levelCode = levelCode;
    }

    public void setGradingRuleEntitys(ArrayList<GradingRuleEntity> gradingRuleEntitys) {
        this.gradingRuleEntitys = gradingRuleEntitys;
    }

    public String toString() {
        return "GradingRuleGroup(levelCode=" + this.getLevelCode() + ", gradingRuleEntitys=" + this.getGradingRuleEntitys() + ")";
    }
}
